package me.zhengjie.modules.repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import me.zhengjie.modules.domain.Companies;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CompaniesMapper extends BaseMapper<Companies> {

    @Select("select * from companies limit #{pageNo},#{pageSize}")
    List<Companies> selectAllByPage(Integer pageNo,Integer pageSize);

    @Select("select * from companies")
    List<Companies> selectAll();

    int selectCount();

}
